import axios from "axios";
import AxiosMockAdapter from "axios-mock-adapter";
import API from "@renderer/api/api";

const setupMock = () => {
  const mock = new AxiosMockAdapter(axios as any);
  mock.onPost(API.resolveFolder).reply(200, {
    patientRecord: {
      "0025": {
        patientName: "测试的",
        seriesIds: ["1", "2", "3"],
      },
      "0026": {
        patientName: "好晕车",
        seriesIds: ["4", "5", "6"],
      },
    },
    seriesRecord: {
      "1": {
        count: 1,
        desc: "无描述1",
        thumbnail: "",
        patientName: "测试的",
        patientUID: "0025",
      },
      "2": {
        count: 320,
        desc: "无描述2",
        thumbnail: "",
        patientName: "测试的",
        patientUID: "0025",
      },
      "3": {
        count: 320,
        desc: "无描述3",
        thumbnail: "",
        patientName: "测试的",
        patientUID: "0025",
      },
      "4": {
        count: 4,
        desc: "无描述4",
        thumbnail: "",
        patientName: "好晕车",
        patientUID: "0026",
      },
      "5": {
        count: 960,
        desc: "无描述5",
        thumbnail: "",
        patientName: "好晕车",
        patientUID: "0026",
      },
      "6": {
        count: 1240,
        desc: "无描述6",
        thumbnail: "",
        patientName: "好晕车",
        patientUID: "0026",
      },
    },
  });
}
export default setupMock ;
